import Vue from 'vue'
import Router from 'vue-router'
import Classic from '@/pages/classic/classic'
import Book from '@/pages/book/book'
import BookDetail from '@/pages/book-detail/book-detail'
import Music from '@/pages/music/music'
import My from '@/pages/my/my'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/classic'
    },
    {
      path: '/classic',
      name: 'Classic',
      component: Classic
    },
    {
      path: '/book',
      name: 'Book',
      component: Book
    },
    {
      path: '/book-detail:id',
      name: 'BookDetail',
      component: BookDetail
    },
    {
      path: '/music',
      name: 'Music',
      component: Music
    },
    {
      path: '/my',
      name: 'My',
      component: My
    }
  ]
})
